﻿// -----------------------------------------------------------------------
// <copyright file="MainViewModelLocator.cs" company="CompDJ">
//     Copyright (c) CompDJ. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace T4DemoCs.ViewModel
{
    using System;

    /// <summary>Main ViewModel Locator class.</summary>
    public class MainViewModelLocator : LocatorBase<MainViewModel>
    {
        /// <summary>Initializes a new instance of the MainViewModelLocator class.</summary>
        public MainViewModelLocator()
        {
            if (IsInDesignMode)
            {
                if (this.DesignTimeViewModel == null)
                {
                    this.DesignTimeViewModel = Bootstrapper.Resolve<MainViewModel>();
                }
            }
        }
    }
}